import Vue from "vue";
import Vuex from "vuex";
// 获取状态管理
import getters from "./getters";

// 状态定义
import user from "./modules/user";
import setting from "./modules/setting";
import website from "./modules/website";
// import router from './modules/asyncRouter'
import router from './modules/localRouter'
Vue.use(Vuex);

const store = new Vuex.Store({
  modules: { 
    router,
    user,
    setting,
    website,
  },
  state: {},
  mutations: {},
  actions: {},
  getters,
});

export default store;
